﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>${setting.siteName} - 订单管理详情</title>
    <meta name="keywords" content="${setting.siteName}">
    <meta name="description" content="${setting.siteName}">
    <!-- BEGIN HEADER -->
    [#include "/admin/include/style.ftl"]
    <!-- END HEADER -->
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>订单管理详情</h5>
                    <div class="ibox-tools">
                        <button type="button" class="btn btn-outline btn-white btn-xs" id="btn-return-loippi"
                                onclick="location.href='${base}/admin/order/list.jhtml'"><i
                                    class="fa fa-reply-all"></i> 返回列表
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <form id="inputForm" class="form-horizontal" action="update.jhtml" method="post">
                        <input type="hidden" value="${tOrder.id}"
                               name="id"/>
                        <div class="form-group">
                            <div class="row">
                                <div class="col-sm-6">
                                    <label class="col-sm-3 control-label">
                                        订单号</label>
                                    <div class="col-sm-9">
                                        <p class="form-control-static">${(tOrder.orderSn)!''}</p>
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <label class="col-sm-3 control-label">
                                        用户名称</label>
                                    <div class="col-sm-9">
                                        <p class="form-control-static">${(tOrder.user.nickName)!''}</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--/row-->
                        <div class="form-group">
                            <div class="row">
                                <div class="col-sm-6">
                                    <label class="col-sm-3 control-label">
                                        订单总额</label>
                                    <div class="col-sm-9">
                                        <p class="form-control-static">${(tOrder.amount)!''}</p>
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <label class="col-sm-3 control-label">
                                        实付金额</label>
                                    <div class="col-sm-9">
                                        <p class="form-control-static">${(tOrder.realAmount)!''}</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--/row-->
                        <div class="form-group">
                            <div class="row">
                                <div class="col-sm-6">
                                    <label class="col-sm-3 control-label">
                                        收货人姓名</label>
                                    <div class="col-sm-9">
                                        <p class="form-control-static">${(tOrder.userName)!''}</p>
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <label class="col-sm-3 control-label">
                                        收货手机号</label>
                                    <div class="col-sm-9">
                                        <p class="form-control-static">${(tOrder.phone)!''}</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--/row-->
                        <div class="form-group">
                            <div class="row">
                                <div class="col-sm-6">
                                    <label class="col-sm-3 control-label">
                                        收货地址</label>
                                    <div class="col-sm-9">
                                        <p class="form-control-static">${(tOrder.addressDetail)!''}</p>
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <label class="col-sm-3 control-label">
                                        订单状态</label>
                                    <div class="col-sm-9">
                                        <p class="form-control-static">
                                            [#switch tOrder.orderStatus]
                                                [#case 0]
                                                    '待支付'
                                                    [#break]
                                                [#case 1]
                                                    '已支付'
                                                    [#break]
                                                [#case 2]
                                                    '已发货'
                                                    [#break]
                                                [#case 3]
                                                    '已发货'
                                                    [#break]
                                                [#case 4]
                                                    '已送达'
                                                    [#break]
                                                [#case 5]
                                                    '已签收'
                                                    [#break]
                                                [#case -1]
                                                    '已取消'
                                                    [#break]
                                            [/#switch]
                                        </p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--/row-->
                        <!--/row-->
                        <div class="form-group">
                            <div class="row">
                                <div class="col-sm-6">
                                    <label class="col-sm-3 control-label">
                                        下单时间</label>
                                    <div class="col-sm-9">
                                        <p class="form-control-static">${(tOrder.orderTime?string('yyyy-MM-dd'))!''}</p>
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <label class="col-sm-3 control-label">
                                        支付时间</label>
                                    <div class="col-sm-9">
                                        <p class="form-control-static">${(tOrder.payTime?string('yyyy-MM-dd'))!''}</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--/row-->
                        <!--/row-->
                        <div class="form-group">
                            <div class="row">
                                <div class="col-sm-6">
                                    <label class="col-sm-3 control-label">
                                        快递单号</label>
                                    <div class="col-sm-9">
                                        <p class="form-control-static">${(tOrder.logisticsNumber)!''}</p>
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <label class="col-sm-3 control-label">
                                        物流名称</label>
                                    <div class="col-sm-9">
                                        <p class="form-control-static">
                                            [#switch tOrder.logisticsCompany]
                                                [#case "zhongtong"]
                                                    中通快递
                                                    [#break]
                                                [#case "shunfeng"]
                                                    顺风速运
                                                    [#break]
                                                [#case "yunda"]
                                                    韵达快递
                                                    [#break]
                                                [#case "shentong"]
                                                    申通快递
                                                    [#break]
                                                [#case "yuantong"]
                                                    圆通速递
                                                    [#break]
                                                [#case "huitongkuaidi"]
                                                    百世快递
                                                    [#break]
                                                [#case "debangkuaidi"]
                                                    德邦快递
                                                    [#break]
                                                [#case "youzhengguonei"]
                                                    邮政快递包裹
                                                    [#break]
                                                [#case "tiantian"]
                                                    天天快递
                                                    [#break]
                                            [/#switch]
                                            </p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--/row-->
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-12 col-sm-offset-10">
                                <button type="button" class="btn btn-default" onclick="window.history.back();">返回
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- BEGIN Script -->
[#include "/admin/include/script.ftl"]
<!-- END Script -->
</body>
</html>
